//
//  WGAccountTool.m
//  WisdomGardon
//
//  Created by 郭壮 on 16/8/24.
//  Copyright © 2016年 Red Persimmon. All rights reserved.
//

#import "WGAccountTool.h"
#import "WGUserDefaultTool.h"

@implementation WGAccountTool

static WGAccountTool *_instance;

+ (instancetype)sharedInstance
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [[self alloc] init];
        _instance.uid = [WGUserDefaultTool getUserDetault:kUserId];
        _instance.token = [WGUserDefaultTool getUserDetault:kToken];
        _instance.headImage = [WGUserDefaultTool getUserDetault:kHeadImage];
        _instance.name = [WGUserDefaultTool getUserDetault:kName];
        _instance.title = [WGUserDefaultTool getUserDetault:kTitle];
        _instance.company = [WGUserDefaultTool getUserDetault:kCompany];
        _instance.sex = [WGUserDefaultTool getUserDetault:kSex];
        _instance.tel = [WGUserDefaultTool getUserDetault:kTel];
    });
    return _instance;
}

@end
